#include "CPosition.h"

#pragma region Constructors & Destructors

CPosition::CPosition(void)
{
	m_fX = 0;
	m_fY = 0;
}


CPosition::~CPosition(void)
{
}

CPosition::CPosition(float fX, float fY)
{
	m_fX = fX;
	m_fY = fY;
}

#pragma endregion 

#pragma  region Methods

CPosition CPosition::operator+(CPosition p)
{
	CPosition c;
	c.m_fX = this->m_fX + p.m_fX;
	c.m_fY = this->m_fY - p.m_fY;
	return c;
}

CPosition CPosition::operator-(CPosition p)
{
	CPosition c;
	c.m_fX = this->m_fX - p.m_fX;
	c.m_fY = this->m_fY - p.m_fY;
	return c;
}
#pragma endregion